Repository navigation
fix(id/world): reject malformed chat.history count types (#7892) - #8016
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 45 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Sweep update for #7892: the actor now rejects malformed supplied chat.history counts instead of silently substituting the default, and clamps unsigned values before converting to usize to avoid 32-bit truncation. Regression coverage checks malformed values and the 2^32 boundary. Focused test passed (1 test, exit 0); git diff --check passed. Pushed head 96bfc1a; awaiting PR checks before merge. |
A supplied count that is not an unsigned integer was silently treated as omitted and served the default 16 lines. Only an omitted count now falls back to 16; any other JSON kind returns bad_args. Adds string, negative, fractional, null, and object cases to the existing default/clamp world-level regression test.
96bfc1a to
4f6da16
Compare
|
agent-note:v1 |
Opened by the git hygiene sweep from previously-unpushed work: this finished commit (b03e681, 2026-11-08 20:29 CST) was sitting unpushed in the idle fleet tree ~/git/fleet/sweep-7892 with no PR. The sweep pushed the branch and opened this PR per issue #1371 Duty A.
Refs #7892
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.